﻿#pragma strict

	public var spriteAppuye:Sprite;
	public var sprite:Sprite;
	
function OnMouseDown()
{
	this.GetComponent(SpriteRenderer).sprite = spriteAppuye;

}
function OnMouseUp()
{
	this.GetComponent(SpriteRenderer).sprite = sprite;
	Application.LoadLevel("choixNiveau");
}


function Update()
{
	if (Input.GetKeyDown(KeyCode.Escape)) 
	{ 
		Application.Quit();
	}
}